{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8f8f5cdc",
   "metadata": {},
   "outputs": [],
   "source": [
    "# author :zqy\n",
    "\n",
    "user_data = [\"vip\"]\n",
    "password_data = [\"123\"]\n",
    "\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "\n",
    "    username = input(\"请输入您的账号：\")\n",
    "    password = input(\"请输入您的密码：\")\n",
    "    if user_data == username:\n",
    "        if password_data == password:\n",
    "            print(\"会员有10次机会\")\n",
    "\n",
    "            import datetime\n",
    "            from datetime import datetime\n",
    "            weekday = datetime.today().weekday()\n",
    "            week_day = int(weekday)\n",
    "            if week_day == 0:\n",
    "                print(\"毛概实践，派森\")\n",
    "            elif week_day == 1:\n",
    "                print(\"用户研究，新媒体评论，旅游法语\")\n",
    "            elif week_day == 2:\n",
    "                print(\"融合新闻学\")\n",
    "            elif week_day == 3:\n",
    "                print(\"创业基础\")\n",
    "            elif week_day == 4:\n",
    "                print(\"太极拳，大英\")\n",
    "            else:\n",
    "                print(\"无课\")\n",
    "            break\n",
    "        else:\n",
    "            if count == 0:\n",
    "                print(\"三次错误提示\")\n",
    "                break\n",
    "            else:\n",
    "                print(\"您输入的账号或密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "   \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "eb82d6f8",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
